package com.codechuan.demo.thread;

import com.codechuan.demo.common.Constant;
import com.codechuan.demo.utils.DialogUtil;
import com.codechuan.demo.utils.HttpControllerUtil;

public class DeleteSubMitXc implements Runnable {
    @Override
    public void run() {
        if (!Constant.driverJourneyGuids.isEmpty()) {
            // 删除发布的行程
            for (String driverJourneyGuid : Constant.driverJourneyGuids) {
                HttpControllerUtil.del_WeChatMini(driverJourneyGuid);
                Constant.handler.post(() -> {
                    DialogUtil.showDialog(Constant.context, "AI百里正在删除过期的接单行程发布~");
                });
            }
        }

    }
}
